<template>
    <div>
        沙雕
        <top></top>
    </div>
</template>

<style>

</style>

<script>
// 引入头部组件
import top from "./components/header.vue";



import axios from "axios"

import Mock from "mockjs"


Mock.mock("http://127.0.0.1:3000/post","get",()=>{
    return "你被拦截了了"
})
axios.defaults.baseURL = "http://127.0.0.1:3000"
async function fn(){
    let res = await axios.get("/post")
    console.log(res);
}
fn()


export default {
    // 注册组件
    components:{ top }
}
</script>